<template>
  <div id="app">
    <!-- 路由占位符 -->
    <router-view />
  </div>
</template>
<script>
export default {
  created(){
    let sUserAgent = navigator.userAgent;
    console.log(sUserAgent);
    if (sUserAgent.indexOf("Android") > -1 || sUserAgent.indexOf("iPhone") > -1 || sUserAgent.indexOf("iPad") > -1 || sUserAgent.indexOf("iPod") > -1 || sUserAgent.indexOf("Symbian") > -1) {
      location.href = "http://h5.xinyueai.com";
      return;
    }
  }
};
</script>
